Fix typo in restaurant.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 7 Mar 2003 19:15:29 +0000 (19:15 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 7 Mar 2003 19:15:29 +0000 (19:15 +0000)
Fix mappings for icon #'s > 'z'.  Thanx, Vito.

gpsbabel/magproto.c
gpsbabel/mapsend.c

index 006ec951e2475e9d4b4cb6dfc61e44d431820f3b..e2fb9ff8bfb99b77df6f018736de2deb5ac93115 100644 (file)
@@ -136,7 +136,7 @@ static icon_mapping_t map330_icon_table[] = {
        { "z", "obstruction" },
        { "aa", "park" },
        { "ab", "resort" },
-       { "ac", "restaraunt" },
+       { "ac", "restaurant" },
        { "ad", "rock" },
        { "ae", "scuba" },
        { "af", "RV service" },
index 655a4deef057227ce4b379e59e340407399a8bd2..78af2c006c3ec4939def996cc3072b9d84a51a36 100644 (file)
@@ -233,7 +233,7 @@ mapsend_wpt_read(void)
                if (wpt_icon < 26)
                        sprintf(tbuf, "%c", wpt_icon + 'a');
                else
-                       sprintf(tbuf, "a%c", wpt_icon - 27 + 'a');
+                       sprintf(tbuf, "a%c", wpt_icon - 26 + 'a');
                wpt_tmp->icon_descr = mag_find_descr_from_token(tbuf);
 
                waypt_add(wpt_tmp);
@@ -347,7 +347,7 @@ n = ++cnt;
                if (1 == strlen(iconp)) {
                        n = iconp[0] - 'a';
                } else {
-                       n = iconp[1] - 'a' + 27;
+                       n = iconp[1] - 'a' + 26;
                }
        } else  {
                n = 0;